//vue-cli 配置文件
module.exports = {
  //打包基础路径
  publicPath: './',
  //开发模式的本地服务器
  devServer: {
    //代理  webpack-dev-server
    proxy: {
      //axios('/maoyan/具体api')
      '/maoyan': {
        target: 'http://m.maoyan.com',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/maoyan': ''
        }
      }
    }
  }
}